<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>{$soft_info.soft_name}</title>

		<meta name="description" content="Common form elements and layouts" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

        <link rel="shortcut icon" href="__PUBLIC__/static/img/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="__PUBLIC__/admin/assets/css/bootstrap.css" />
		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/bootstrap.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/font-awesome.css" />

		<!-- page specific plugin styles -->
		<!-- <link rel="stylesheet" href="__PUBLIC__/admin/assets/css/jquery-ui.custom.css" /> -->

		<!-- page specific plugin styles -->
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/jquery-ui.css" />
		
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/chosen.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/datepicker.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/prettify.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/bootstrap-timepicker.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/daterangepicker.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/bootstrap-datetimepicker.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/colorpicker.css" />
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/bootstrap-duallistbox.css" />

		<!-- text fonts -->
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />

		<!--[if lte IE 9]>
			<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

		<!--[if lte IE 9]>
		  <link rel="stylesheet" href="__PUBLIC__/admin/assets/css/ace-ie.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<script src="__PUBLIC__/admin/assets/js/ace-extra.js"></script>

		<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
		<!--[if lte IE 8]>
		<script src="__PUBLIC__/admin/assets/js/html5shiv.js"></script>
		<script src="__PUBLIC__/admin/assets/js/respond.js"></script>
		<![endif]-->
        <script src="__PUBLIC__/ueditor/ueditor.config.js"></script>
        <script src="__PUBLIC__/ueditor/ueditor.all.js"></script>
        <script src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8"></script>
	</head>

	<body class="no-skin">
		<div id="navbar" class="navbar navbar-default">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<!-- #section:basics/navbar.layout.brand -->
					<a href="#" class="navbar-brand">
						<small>{$soft_info.soft_name}</small>
                    </a>
				</div>
				<!-- #section:basics/navbar.dropdown -->
				<div class="navbar-buttons navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">
						<!-- #section:basics/navbar.user_menu -->
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
							<!-- 
								<img class="nav-user-photo" src="__PUBLIC__/admin/assets/avatars/user.jpg" alt="Jason's Photo" /> -->
								<span class="user-info">
									<small>Welcome,</small>
									<?php
									    if($_SESSION['adminInfo']['username']) {
									        $username = $_SESSION['adminInfo']['username'];
									    } else if ($_COOKIE['username']) {
									        $username = $_COOKIE['username'];
									    }
									    echo $username;
									?>
								</span>
								<i class="ace-icon fa fa-caret-down"></i>
							</a>
							<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="{:U('user/modifyUserInfo')}">
										<i class="ace-icon fa fa-cog"></i>
										修改资料
									</a>
								</li>
								<li>
									<a href="{:U('user/modifyPassword')}">
										<i class="ace-icon fa fa-user"></i>
										修改密码
									</a>
								</li>
								<li class="divider"></li>
								<li>
									<a href="{:U('public/logout')}">
										<i class="ace-icon fa fa-power-off"></i>
										退出登录
									</a>
								</li>
							</ul>
						</li>
						<!-- /section:basics/navbar.user_menu -->
					</ul>
				</div>
				<!-- /section:basics/navbar.dropdown -->
			</div><!-- /.navbar-container --> 
		</div>